//
//  HDDeclare.h
//  HDWuDaDaoServiceCenter
//
//  Created by HDNiuKuiming on 2017/4/7.
//  Copyright © 2017年 HDNiuKuiming. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HD_HSP_Broadcast.h"

#define kSystemMessageNoti @"kSystemMessageNoti"

typedef enum{
    kLanguage_Type_Unknown = 0,
    kLanguage_Type_Chinese,
    kLanguage_Type_English,
    kLanguage_Type_Japanese,
    kLanguage_Type_Korean,
    kLanguage_Type_French,
    kLanguage_Type_Germany,
    kLanguage_Type_Spanish,
}Language_Type;

typedef enum{
    kLogin_Status_Unknown,
    kLogin_Status_Login,
    kLogin_Status_Logout,
//    kLogin_Status_Uncomplete,//未补全信息
}Login_Status;

typedef enum{
    kNet_Status_Unkown,
    kNet_Status_Wifi,
    kNet_Status_3G_4G,
    kNet_Status_Failed,
}Net_Status_Type;

typedef enum{
    kThird_Part_Login_Unknown,
    kThird_Part_Login_QQ,
    kThird_Part_Login_Wechat,
    kThird_Part_Login_Weibo,
}Third_Part_Login;

@interface HDDeclare : NSObject

@property (assign, nonatomic) Language_Type    languageType;
@property (assign, nonatomic) Login_Status     loginStatus;
@property (assign, nonatomic) Third_Part_Login thirdPartLogin;
@property (assign, nonatomic) Net_Status_Type  net_Status_Type;
@property (assign, nonatomic) BOOL             beaconFlag;

@property (strong, nonatomic) UIViewController *visibleVC;
@property (strong, nonatomic) NSString *language;
@property (strong, nonatomic) NSString *baconStr;        // 当前蓝牙号
@property (strong, nonatomic) NSString *nowMuseumID;     // 当前蓝牙号
@property (assign, nonatomic) BOOL     isResourceAll;     // 当前蓝牙号

@property (strong, nonatomic) NSArray *resArray;         // 全部的资源数组
@property (strong, nonatomic) NSArray *routeArray;       // 3条固定路线数组
@property (strong, nonatomic) NSArray *mapSizeArray;     // 全部地图大小
@property (strong, nonatomic) NSArray *mapPOIArray;      // 全部地图POI信息
@property (strong, nonatomic) UIView *barBottomView;
@property (strong, nonatomic) NSDictionary *translateDic;//翻译字典


@property(strong,nonatomic)NSString *catch_path;

@property (strong, nonatomic) NSString *user_login;      //用户名
@property (strong, nonatomic) NSString *user_nicename;   //昵称
@property (strong, nonatomic) NSString *avatar;          //头像
@property (strong, nonatomic) NSString *mobile;          //手机号
@property (strong, nonatomic) NSString *userSignature;   //个性签名
@property (strong, nonatomic) NSString *token;
@property (strong, nonatomic) NSString *uid;
@property (strong, nonatomic) NSString *card_no;         //会员卡编号
@property (strong, nonatomic) NSString *level;           //会员等级
@property (strong, nonatomic) NSString *score;           //会员积分
@property (strong, nonatomic) NSString *third_info_ok;   //三方补全flag：0未补全、1补全
@property (strong, nonatomic) NSString *email;           //邮箱
@property (strong, nonatomic) NSString *group_name;      //组名
@property (strong, nonatomic) NSString *name;            //姓名

@property (nonatomic)         BOOL netStatus;
@property (nonatomic)         BOOL loginByPhone;         //是否是手机登录，no表示第三方登录

#pragma mark
#pragma mark -------- Methods --------

+ (id)sharedDeclare;
+ (BOOL)isValidBeacon:(NSInteger)beaconNum;
+ (NSString *)IP_Request_Header; // 根据内外网获取http请求的前缀

- (NSString*)nowLanguageIndexStr; // 当前语种1,2,3,4...
- (Language_Type)languageIndex;
- (void)createMapPath:(NSString *)webMapPath;
- (BOOL)isRouteShowMode;
- (NSString *)getTranslate:(NSString*)originalString;//输入需要翻译的字符串,在plist里直接查询即可
+ (NSString *)UIString:(NSString *)keyStr; // 用类方法替换UI字符串
- (NSString *)getUserPhoneID; // 机器号


// 判断资源是否过半了，提示下载
- (void)judgeIsResourceAll;


-(NSArray*)giveMeExhibitData;
-(NSArray*)giveMeBoutiqueData;
-(NSArray*)giveMeZhanTingData;
-(NSArray*)giveMeUnitData;

-(NSArray*)giveMeNewsData;//获取所有资讯
-(void)delegateNewsWith:(NSString *)identifier;//删除一条资讯
-(void)makeSeenWith:(NSString *)identifier;//修改资讯状态为已读
-(void)addANewWith:(HD_HSP_Broadcast*)broadcast;//添加一条资讯
-(NSString*)findNews:(NSString *)identifier;//查找资讯是否存在
#pragma mark - 内置文字
@property(strong,nonatomic)NSString *userName;
@property(strong,nonatomic)NSString *nickName;
@property(strong,nonatomic)NSString *userID;
@property(strong,nonatomic)NSString *channel;

@property(strong,nonatomic)NSString *unit;
@property(strong, nonatomic)NSString *cameraUnavailable;
@property(strong,nonatomic)NSString *alertTitle;
@property(strong,nonatomic)NSString *alertCancel;
@property(strong,nonatomic)NSString *alertOK;
@property(strong,nonatomic)NSString *InvalidInput;
@property(strong,nonatomic)NSString *versionTips;

@property(strong,nonatomic)NSString *downloading;
@property(strong,nonatomic)NSString *instralling;
@property(strong,nonatomic)NSString *downloadFailed;
@property(strong,nonatomic)NSString *downloadNetFailed;
@property(strong,nonatomic)NSString *downloadBackTip;
@property(strong,nonatomic)NSString *connectFailed;
@property(strong,nonatomic)NSString *downloadSizeZero;

@property(strong,nonatomic)NSString *target;
@property(strong,nonatomic)NSString *groupNumber;
@property(strong,nonatomic)NSString *appVersion;
@property(strong,nonatomic)NSString *dataBaeVersion;
@property(nonatomic,strong)NSString *museumName;

@property (nonatomic,strong) NSString *introduce;
@property (nonatomic,strong) NSString *introduction;
@property (nonatomic,strong) NSString *museumRelics;
@property (nonatomic,strong) NSString *mapGuide;
@property (nonatomic,strong) NSString *floorTitle;

@property(nonatomic,strong)NSString *strategy;
@property(nonatomic,strong)NSString *strategy_guide;
@property(nonatomic,strong)NSString *strategy_ticket;
@property(nonatomic,strong)NSString *strategy_traffic;
@property(nonatomic,strong)NSString *strategy_surroundings;
@property(nonatomic,strong)NSString *strategy_phone;
@property(nonatomic,strong)NSString *strategy_blog;
@property(nonatomic,strong)NSString *strategy_website;

@property(nonatomic,strong)NSString *settingLanguage;
@property(nonatomic,strong)NSString *settingNowVersion;
@property(nonatomic,strong)NSString *settingRenewResource;
@property(nonatomic,strong)NSString *settingRenewVersion;
@property(nonatomic,strong)NSString *settingResourceTips;
@property(nonatomic,strong)NSString *allResourceTips;

@property (nonatomic,strong) NSString *autoLocation;
@property (nonatomic,strong) NSString *setting;
@property (nonatomic,strong) NSString *sizeIsZero;
@property (nonatomic,strong) NSString *download_Size;

@property (nonatomic,strong) NSString *latestVersion;
@property (nonatomic,strong) NSString *NewVersions;
@property (nonatomic,strong) NSString *NewDatabase;
@property(nonatomic,strong)NSString *autoGuide;
@property(nonatomic,strong)NSString *myLocationString;

//----------------------------
@property (nonatomic, strong) NSString *netSurveyOver;
@property (nonatomic, strong) NSString *alertBack;
@property (nonatomic, strong) NSString *netSurveyLastPage;
@property (nonatomic, strong) NSString *informationNewNotice;

@property (nonatomic, strong) NSString *noExhibits;
@property (nonatomic, strong) NSString *autoGuideSearch;
@property (nonatomic, strong) NSString *QRCodePage;
@property (nonatomic, strong) NSString *autoGuideNumber;
@property (nonatomic, strong) NSString *underConstruction;

@property (nonatomic, strong) NSString *downloadFlagC;
@property (nonatomic, strong) NSString *downloadFlagE;
@property (nonatomic, strong) NSString *downloadFlagJ;
@property (nonatomic, strong) NSString *downloadFlagK;

// 服务器交互
@property (nonatomic, strong) NSString *lastPageThanks;
@property (nonatomic, strong) NSString *lastPage;

@property(nonatomic,strong)NSString *myFriend;
@property(nonatomic,strong)NSString *SOS;
@property(nonatomic,strong)NSString *SOSSuceed;
@property(nonatomic,strong)NSString *Interaction;
@property(nonatomic,strong)NSString *Questionnaire;
@property(nonatomic,strong)NSString *Feedback;
@property(nonatomic,strong)NSString *outsideService;
@property(nonatomic,strong)NSString *noMessage;

@property(nonatomic,strong)NSString *visit;
@property(nonatomic,strong)NSString *arrive;
@property(nonatomic,strong)NSString *museumInfo;
@property(nonatomic,strong)NSString *website;

@property(nonatomic,strong)NSString *joinGroup;
@property(nonatomic,strong)NSString *joinNumberNeed;
@property(nonatomic,strong)NSString *joinFailed;
@property(nonatomic,strong)NSString *registerGroup;
@property(nonatomic,strong)NSString *registerFailed;
@property(nonatomic,strong)NSString *myGroupNumber;
@property(nonatomic,strong)NSString *myGroupTotalPersion;
@property(nonatomic,strong)NSString *myGroupQuit;


@property(nonatomic,strong)NSString *addCardFailedNumberError;
@property(nonatomic,strong)NSString *addCardFailedExist;
@property(nonatomic,strong)NSString *addCardSuccess;
@property(nonatomic,strong)NSString *addCardFailedFailed;

@property(nonatomic,strong)NSString *removeCardFailedNumberError;
@property(nonatomic,strong)NSString *removeCardNumbaerNotExist;
@property(nonatomic,strong)NSString *removecardFailed;
@property(nonatomic,strong)NSString *guideRoute;

@property(nonatomic,strong)NSString *registerSucceed;
@property(nonatomic,strong)NSString *outsideGroup;
@property(nonatomic,strong)NSString *noLocationInfo;
@property (nonatomic, strong) NSString *feedbackName;
@property (nonatomic, strong) NSString *feedbackEmail;
@property (nonatomic, strong) NSString *feedbackContent;
@property (nonatomic, strong) NSString *feedEmailError;
@property (nonatomic,strong) NSString *nullcontent;
@property (nonatomic,strong) NSString *feedbacksuceed;


@property (nonatomic, strong) NSString *minePage;
@property (nonatomic, strong) NSString *mineInfo;
@property (nonatomic,strong) NSString *yourOutside;
@property (nonatomic,strong) NSString *yourInside;
@property (nonatomic,strong) NSString *nameLabel;
@property (nonatomic,strong) NSString *groupLabel;
@property (nonatomic, strong) NSString *mineCategory;
@property (nonatomic, strong) NSString *nameNotNil;
@property (nonatomic,strong) NSString *input;
@property (nonatomic,strong) NSString *myinformation;
@property (nonatomic,strong) NSString *thenews;

@property (nonatomic, strong) NSString *sosSendSuccess;
@property (nonatomic, strong) NSString *sosPage;
@property (nonatomic, strong) NSString *sosLost;
@property (nonatomic, strong) NSString *sosHurt;
@property (nonatomic, strong) NSString *sosOther;
@property (nonatomic, strong) NSString *othersNickName;

@property (nonatomic,strong) NSString *detailString;
@property (nonatomic, strong) NSString *systemNotice;
@property (nonatomic, strong) NSString *systemWelcome;
@property (nonatomic, strong) NSString *deleteNews;

@end

